package com.ssy.lingxi.report.entity.report;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 每日新增报表DO
 * @author 伍将
 * @date 2020/11/12
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "rep_newly_added_day_report", indexes = {@Index(name = "rep_newly_added_day_report_date_time_idx", columnList = "dateTime")})
public class NewlyAddedDayReportDO implements Serializable {
    private static final long serialVersionUID = 5017531639546612229L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "newly_added_day_report_seq")
    @SequenceGenerator(sequenceName = "rep_newly_added_day_report_seq", name = "newly_added_day_report_seq", allocationSize = 1)
    private Long id;

    /**
     * 日期时间
     */
    @Column(columnDefinition = "timestamp")
    private LocalDateTime dateTime;

    /**
     * 订单金额
     */
    @Column(columnDefinition = "decimal", nullable = false)
    private Double orderAmount = 0D;

    /**
     * 会员数量
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long memberCount = 0L;

    /**
     * 商品数量
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long commodityCount = 0L;

    /**
     * 店铺数量
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long shopCount = 0L;

    /**
     * 品牌数量
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long brandCount = 0L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Long getMemberCount() {
        return memberCount;
    }

    public void setMemberCount(Long memberCount) {
        this.memberCount = memberCount;
    }

    public Long getCommodityCount() {
        return commodityCount;
    }

    public void setCommodityCount(Long commodityCount) {
        this.commodityCount = commodityCount;
    }

    public Long getShopCount() {
        return shopCount;
    }

    public void setShopCount(Long shopCount) {
        this.shopCount = shopCount;
    }

    public Long getBrandCount() {
        return brandCount;
    }

    public void setBrandCount(Long brandCount) {
        this.brandCount = brandCount;
    }
}
